home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 July / WPCJUL96.ISO / file.exe / MGIFINJ.DXR / 00011_MGINoiseMove, MGIPosterHighLight.ls < prev    next >
Encoding:
Text File  |  1996-05-15  |  8.2 KB  |  188 lines

  1. on MGINoiseMove
  2.   global MGIIntroCounter, MGINoiseSprite, MGILogoSprite, MGIFoodPosterSprite, MGIFindTV, MGIMasterList, MGILastPosterSprite, MGIInternetTextList, MGIWhichHomeMacList, MGIWhichHomePCList, MGIGETCount
  3.   if the mouseUp and (MGIFindTV = 2) then
  4.     set MGIFindTV to 3
  5.   end if
  6.   if rollOver(MGILogoSprite) then
  7.     set the castNum of sprite MGINoiseSprite to 59
  8.     if MGIFindTV = 1 then
  9.       set the castNum of sprite getAt(getAt(MGIInternetTextList, 1), 1) to getAt(getAt(MGIInternetTextList, 1), 8)
  10.       set the locH of sprite getAt(getAt(MGIInternetTextList, 1), 1) to getAt(getAt(MGIInternetTextList, 1), 3)
  11.       set the locV of sprite getAt(getAt(MGIInternetTextList, 1), 1) to getAt(getAt(MGIInternetTextList, 1), 4)
  12.       set the ink of sprite getAt(getAt(MGIInternetTextList, 1), 1) to getAt(getAt(MGIInternetTextList, 1), 5)
  13.       set the locH of sprite 28 to 2000
  14.       set the locH of sprite 29 to 2000
  15.       set the ink of sprite MGINoiseSprite to 36
  16.       set the castNum of sprite 47 to the castNum of sprite 47 - 1
  17.       updateStage()
  18.       MGISpinE()
  19.       set the locH of sprite 2 to the mouseH
  20.       set the locV of sprite 2 to the mouseV
  21.     end if
  22.     repeat while rollOver(MGILogoSprite) or rollOver(getAt(getAt(MGIInternetTextList, 1), 1))
  23.       MGISpinE()
  24.       if MGIFindTV = 1 then
  25.         repeat while MGIFindTV = 1
  26.           MGISpinE()
  27.           set the locH of sprite 2 to the mouseH
  28.           set the locV of sprite 2 to the mouseV
  29.           if the mouseDown then
  30.             cursor(200)
  31.             set the locH of sprite 34 to 2000
  32.             set the locH of sprite 2 to 2000
  33.             updateStage()
  34.             repeat with d = MGIFoodPosterSprite to MGILastPosterSprite
  35.               MGISpinE()
  36.               set g to d - MGIFoodPosterSprite + 1
  37.               set the castNum of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 8)
  38.               set the locH of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 3)
  39.               set the locV of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 4)
  40.               set the ink of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 5)
  41.               updateStage()
  42.               set the locV of sprite d to 550
  43.               repeat while the locV of sprite d > (407 + 15)
  44.                 set the locV of sprite d to the locV of sprite d - 15
  45.                 MGISpinE()
  46.                 updateStage()
  47.               end repeat
  48.               set the locV of sprite d to 407
  49.               updateStage()
  50.               set the locH of sprite getAt(getAt(MGIInternetTextList, g), 1) to 2000
  51.               wait(1)
  52.             end repeat
  53.             repeat with t = 1 to count(MGIMasterList)
  54.               if count(getAt(MGIMasterList, t)) > 2 then
  55.                 if getAt(getAt(MGIMasterList, t), 5) = 39 then
  56.                   set the ink of sprite getAt(getAt(MGIMasterList, t), 1) to 36
  57.                   setAt(getAt(MGIMasterList, t), 5, 36)
  58.                 end if
  59.               end if
  60.             end repeat
  61.             set the ink of sprite 1 to 36
  62.             repeat with x = 39 to 47
  63.               set the ink of sprite x to 36
  64.             end repeat
  65.             cursor(-1)
  66.             set the locH of sprite 34 to 560
  67.             updateStage()
  68.             set MGIFindTV to 2
  69.             cursor(-1)
  70.           end if
  71.         end repeat
  72.       else
  73.         if (MGIFindTV = 3) and the mouseDown then
  74.           cursor(200)
  75.           set MGIIntroCounter to 0
  76.           repeat with d = MGIFoodPosterSprite to MGILastPosterSprite
  77.             set g to d - MGIFoodPosterSprite + 1
  78.             set the castNum of sprite MGINoiseSprite to getAt(getAt(MGIInternetTextList, g), 6)
  79.             set the castNum of sprite d to the castNum of sprite d + 1
  80.             set the castNum of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 2)
  81.             set the locH of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 3)
  82.             set the locV of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 4)
  83.             set the ink of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 5)
  84.             updateStage()
  85.             repeat with t = 1 to 30
  86.               MGISpinE()
  87.               if MGIIntroCounter = 3 then
  88.                 set MGIIntroCounter to 0
  89.                 set the castNum of sprite MGINoiseSprite to the castNum of sprite MGINoiseSprite - 3
  90.                 updateStage()
  91.                 next repeat
  92.               end if
  93.               set MGIIntroCounter to 1 + MGIIntroCounter
  94.               set the castNum of sprite MGINoiseSprite to the castNum of sprite MGINoiseSprite + 1
  95.               updateStage()
  96.             end repeat
  97.             set the castNum of sprite d to the castNum of sprite d - 1
  98.             set the locH of sprite getAt(getAt(MGIInternetTextList, g), 1) to 2000
  99.             set the castNum of sprite MGINoiseSprite to 58
  100.             set MGIIntroCounter to 0
  101.             updateStage()
  102.           end repeat
  103.           cursor(-1)
  104.         end if
  105.       end if
  106.       if MGIIntroCounter = 3 then
  107.         set MGIIntroCounter to 0
  108.         set the castNum of sprite MGINoiseSprite to 59
  109.         updateStage()
  110.         next repeat
  111.       end if
  112.       set MGIIntroCounter to 1 + MGIIntroCounter
  113.       set the castNum of sprite MGINoiseSprite to the castNum of sprite MGINoiseSprite + 1
  114.       updateStage()
  115.     end repeat
  116.     if MGIFindTV = 1 then
  117.       set the ink of sprite MGINoiseSprite to 39
  118.       set the castNum of sprite 47 to the castNum of sprite 47 + 1
  119.       set the locH of sprite getAt(getAt(MGIInternetTextList, 1), 1) to 2000
  120.       MGISpinE()
  121.       set the locH of sprite 2 to the mouseH
  122.       set the locV of sprite 2 to the mouseV
  123.     end if
  124.   end if
  125.   if not rollOver(MGILogoSprite) then
  126.     set the castNum of sprite MGINoiseSprite to 58
  127.     set MGIIntroCounter to 0
  128.     updateStage()
  129.   end if
  130. end
  131.  
  132. on MGIPosterHighLight
  133.   global MGIFoodPosterSprite, MGILastPosterSprite, MGINoiseSprite, MGIIntroCounter, MGIInternetTextList, MGILaunchI
  134.   if MGILaunchI = 0 then
  135.     repeat with d = MGIFoodPosterSprite to MGILastPosterSprite
  136.       if rollOver(d) and not rollOver(34) then
  137.         set g to d - MGIFoodPosterSprite + 1
  138.         set the castNum of sprite MGINoiseSprite to getAt(getAt(MGIInternetTextList, g), 6)
  139.         set the castNum of sprite d to the castNum of sprite d + 1
  140.         set the castNum of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 2)
  141.         set the locH of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 3)
  142.         set the locV of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 4)
  143.         set the ink of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 5)
  144.         updateStage()
  145.         repeat while rollOver(d)
  146.           if rollOver(33) then
  147.             exit repeat
  148.           end if
  149.           if the mouseDown then
  150.             set MGILaunchI to g
  151.             exit repeat
  152.           end if
  153.           MGISpinE()
  154.           if MGIIntroCounter = 3 then
  155.             set MGIIntroCounter to 0
  156.             set the castNum of sprite MGINoiseSprite to the castNum of sprite MGINoiseSprite - 3
  157.             updateStage()
  158.             next repeat
  159.           end if
  160.           set MGIIntroCounter to 1 + MGIIntroCounter
  161.           set the castNum of sprite MGINoiseSprite to the castNum of sprite MGINoiseSprite + 1
  162.           updateStage()
  163.         end repeat
  164.         set the castNum of sprite d to the castNum of sprite d - 1
  165.         set the locH of sprite getAt(getAt(MGIInternetTextList, g), 1) to 2000
  166.         set the castNum of sprite MGINoiseSprite to 58
  167.         set MGIIntroCounter to 0
  168.         updateStage()
  169.       end if
  170.       if MGILaunchI <> 0 then
  171.         exit repeat
  172.       end if
  173.     end repeat
  174.   end if
  175.   if MGILaunchI <> 0 then
  176.     set MGILaunchI to 0
  177.     if the machineType < 200 then
  178.       beep()
  179.     else
  180.       set the castNum of sprite 36 to 155
  181.       set the locH of sprite 36 to 209
  182.       set the locV of sprite 36 to 217
  183.       updateStage()
  184.       StartBrowser("html/room/index.htm")
  185.     end if
  186.   end if
  187. end
  188.